package com._520it.crm.service;

import com._520it.crm.domain.Permission;

import java.util.List;

public interface IPermissionService {

    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    /**
     * 根据角色ID进行获取权限表达式
     * @param roleId
     * @return
     */
    List<Permission> queryPageResultByRoleId(Long roleId);

    void reload();

    List<String> queryPermissionsByEmpId(Long id);
}
